var SelectDropDown = require('../../../src/libs/select-drop-down');
/*var SelectDropDown = UcsmyUI.SelectDropDown;*/
var Root = React.createClass({
    options:[
        {
            option: "下拉1"
        },
        {
            option: "<div><img src='' alt=''>13546456454</div>",
            value: "2",
            disabled: true //不能选择
        },
        {
            option: "下拉3",
            value: "3",
            disabled: true
        },
        {
            option: "下拉4",
            value: "4"
        },
        {
            option: "下拉5",
            value: "5"
        }
    ],
    test:function(){
        var val = this.refs.test.getCurrentSelect();
        console.log(val);
    },
    onchange:function(v){
        console.log(v)
    },
    componentDidMount:function(){

    },
    render:function(){
        return (
            <div>
                <SelectDropDown options={this.options} ref="test" onChange={this.onchange.bind(this)}/>
                <SelectDropDown options={this.options}/>
                <SelectDropDown options={this.options}/>
                <button onclick={this.test.bind(this)}>获取第一项当前选择项</button>
                {/*<button onclick={this.test.bind(this)}>设置当前选择项</button>*/}
            </div>
        )
    }
});
ReactDOM.render(<Root/>, document.getElementById('main'));
